package com.game.cards.monsters;

import com.game.cards.Attribute;
import com.game.cards.Flags;
import com.game.cards.MonsterCard;
import com.game.cards.Type;
import com.game.play.Events;
import com.game.play.Game;

public class RagingFlamePsycho extends MonsterCard {
	public RagingFlamePsycho()
	{
		this.title = "Raging Flame Psycho";
		this.flags.add(Flags.effect);
		this.flags.add(Flags.triggereffect);
		this.trigger = Events.attackplayer;
		
		this.description = "Everytime Raging Flame Psycho attacks an opponent directly \n" +
		"His atk and def increase by 800";
		
		this.attribute = Attribute.fire;
		this.type = Type.Pyro;
		
		this.attack = 500;
		this.defense = 1000;
		
	}
	public boolean test(Game game)
	{
		String[] args =  (game.getCurrentTurn().getAq().getEventArgs(this.getTrigger()));
		MonsterCard t = (MonsterCard) game.getCardById(Integer.valueOf(args[1]));
		
		if (t.equals(this)) {
		System.out.println(this.title + " atk and def increased by 800!");
		
		this.setAttack(this.getAttack() + 800);
		this.setDefense(this.getDefense() + 800);
		
		return true;
		}
		return false;
	}

}
